package com.wendy.admin.errorcode;

import com.wendy.common.core.constant.HttpStatus;
import com.wendy.common.core.errcode.base.BaseError;

public class SysPostError extends BaseError {


    public static SysPostError ADD_ERROR = new SysPostError("新增岗位%s失败，岗位名称已存在", HttpStatus.NOT_FOUND);
    public static SysPostError ADD_CODE_ERROR = new SysPostError("新增岗位%s失败，岗位编码已存在", HttpStatus.NOT_FOUND);
    public static SysPostError EDIT_ERROR = new SysPostError("修改岗位%s失败，岗位名称已存在", HttpStatus.NOT_FOUND);
    public static SysPostError EDIT_CODE_ERROR = new SysPostError("修改岗位%s失败，岗位编码已存在", HttpStatus.NOT_FOUND);
    public SysPostError() {
        super();
    }
    public SysPostError(String msg, Integer code) {
        super(msg, code);
    }
}
